package upm.pb4agent.team8.Common;

import upm.pb4agent.team8.Common.PB4Utils.MsgTypes;

public class VirtualConsole
{
	public final String FormatMsg = "Team8: ";
	public final boolean ShowLowLevelMsg = false;
	
	public void WriteLine( String content, MsgTypes type )
	{
		boolean show = true;
		if ( type == PB4Utils.MsgTypes.Low )
		{
			show = ShowLowLevelMsg; 
		}
		
		if (show == true)
		{
			System.out.println( FormatMsg + content );
		}
	}
	
	public void WriteLine( String msg )
	{
		WriteLine(msg, MsgTypes.Standard);
	}
	
	public void WriteLine( String msg, Exception e )
	{
		WriteLine(msg, MsgTypes.Low);
		e.printStackTrace();
	}
}
